package closing

import (
	"crmeb-common/global"
	"math/big"
	"time"
)

// MerchantClosingRecord 商家结算记录表
type MerchantClosingRecord struct {
	global.BaseModel
	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户id"`

	ClosingNo string `json:"closingNo" gorm:"column=closing_no;comment:结算单号"`

	Amount big.Float `json:"amount" gorm:"column=amount;comment:金额"`

	ClosingType string `json:"closingType" gorm:"column=closing_type;comment:结算类型:bank-银行卡,wechat-微信,alipay-支付宝"`

	ClosingName string `json:"closingName" gorm:"column=closing_name;comment:结算姓名"`

	ClosingBank string `json:"closingBank" gorm:"column=closing_bank;comment:结算银行"`

	ClosingBankCard string `json:"closingBankCard" gorm:"column=closing_bank_card;comment:结算银行卡号"`

	AlipayAccount string `json:"alipayAccount" gorm:"column=alipay_account;comment:支付宝账号"`

	WechatNo string `json:"wechatNo" gorm:"column=wechat_no;comment:微信号"`

	PaymentCode string `json:"paymentCode" gorm:"column=payment_code;comment:收款二维码"`

	AccountStatus int32 `json:"accountStatus" gorm:"column=account_status;comment:到账状态：0-未到账，1-已到账"`

	ClosingProof string `json:"closingProof" gorm:"column=closing_proof;comment:结算凭证"`

	ClosingTime time.Time `json:"closingTime" gorm:"column=closing_time;comment:结算时间"`

	AuditStatus int32 `json:"auditStatus" gorm:"column=audit_status;comment:审核状态：0-待审核，1-通过审核，2-审核失败"`

	RefusalReason string `json:"refusalReason" gorm:"column=refusal_reason;comment:拒绝原因"`

	AuditId int32 `json:"auditId" gorm:"column=audit_id;comment:审核员id"`

	AuditTime time.Time `json:"auditTime" gorm:"column=audit_time;comment:审核时间"`

	Mark string `json:"mark" gorm:"column=mark;comment:商户备注"`

	PlatformMark string `json:"platformMark" gorm:"column=platform_mark;comment:平台备注"`
}
